package com.alex;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");

        UserService userService = ctx.getBean("userService", UserService.class);

        System.out.println(userService.getClass());
        System.out.println(userService.getClass().getClass());

        userService.add();
//        userService.update();
    }
}
